#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QObject>
#include <QThread>
#include <QDebug>
#include <QApplication>
#include <QScreen>
#include <QPixmap>

class myThread : public QThread
{
    Q_OBJECT
public:
    myThread(QObject* parent = nullptr);
    void stopping();
    void reset();

protected:
    virtual void run() override;

signals:
    void sndDesk(QPixmap pic);
    void threadstopped();

private:
    QScreen* screen;
    volatile bool stopped; //判断是否停止线程
};

#endif // MYTHREAD_H
